package com.liyiqing.commonservice.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class  NowTime {

    /**
     *获得系统当前时间
     */
    public static String getNowTime(){
        SimpleDateFormat formatter= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date date = new Date();
        String time = formatter.format(date);
        return time;
    }

}
